package com.tudouji.project.harvest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.harvest.mapper.AcceptformMapper;
import com.tudouji.project.harvest.domain.Acceptform;
import com.tudouji.project.harvest.service.IAcceptformService;

/**
 * 验收单Service业务层处理
 * 
 * @author tudouji
 * @date 2021-05-12
 */
@Service
public class AcceptformServiceImpl implements IAcceptformService 
{
    @Autowired
    private AcceptformMapper acceptformMapper;

    /**
     * 查询验收单
     * 
     * @param guid 验收单ID
     * @return 验收单
     */
    @Override
    public Acceptform selectAcceptformById(String guid)
    {
        return acceptformMapper.selectAcceptformById(guid);
    }

    /**
     * 查询验收单列表
     * 
     * @param acceptform 验收单
     * @return 验收单
     */
    @Override
    public List<Acceptform> selectAcceptformList(Acceptform acceptform)
    {
        return acceptformMapper.selectAcceptformList(acceptform);
    }

    /**
     * 新增验收单
     * 
     * @param acceptform 验收单
     * @return 结果
     */
    @Override
    public int insertAcceptform(Acceptform acceptform)
    {
        return acceptformMapper.insertAcceptform(acceptform);
    }

    /**
     * 修改验收单
     * 
     * @param acceptform 验收单
     * @return 结果
     */
    @Override
    public int updateAcceptform(Acceptform acceptform)
    {
        return acceptformMapper.updateAcceptform(acceptform);
    }

    /**
     * 批量删除验收单
     * 
     * @param guids 需要删除的验收单ID
     * @return 结果
     */
    @Override
    public int deleteAcceptformByIds(String[] guids)
    {
        return acceptformMapper.deleteAcceptformByIds(guids);
    }

    /**
     * 删除验收单信息
     * 
     * @param guid 验收单ID
     * @return 结果
     */
    @Override
    public int deleteAcceptformById(String guid)
    {
        return acceptformMapper.deleteAcceptformById(guid);
    }
}
